/**
 * Created by carly on 2017/6/26.
 */
// const gulp = require('gulp');
var gulp = require('gulp');
var $ = require('gulp-load-plugins');
var less = require('gulp-less');
var minCss = require('gulp-minify-css');

gulp.task('dev-style', function () {
   gulp.src('./less/app.less')
       .pipe(less())
       .pipe(gulp.dest('./dist/css'));
});

gulp.task('f7-color', function () {
    gulp.src('./less/framework7.ios.colors.less')
        .pipe(less())
        .pipe(minCss())
        .pipe(gulp.dest('./dist/css'));
})
gulp.task('watch-less', ['dev-style'],function () {
    gulp.watch(['./less/**/*.less'], ['dev-style']);
});